package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.BankAccountUpsertReqDTO;
import com.jzo2o.customer.service.IBankAccountService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController("bankAccountController")
@RequestMapping("/worker/bank-account")
@Api(tags = "服务端 - 银行账号管理相关接口")
public class BankAccountController {
    @Autowired
    private IBankAccountService bankAccountService;
    @PostMapping
    public void SettingsBankAccount(@RequestBody BankAccountUpsertReqDTO bankAccountUpsertReqDTO) {
       bankAccountService.SettingsBankAccount(bankAccountUpsertReqDTO);
    }
    @GetMapping("/currentUserBankAccount")
    public BankAccountUpsertReqDTO currentUserBankAccount() {
        return bankAccountService.currentUserBankAccount();
    }
}
